#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail

class StockSearchPage:
    dateButton=LocatorDetail('div.date-time','日期按钮')
    searchInput=LocatorDetail('input.el-input__inner','搜索框')
    clearButton=LocatorDetail('div.search-reset','清空按钮')
    clearHistoryButton=LocatorDetail('div.clear-box.cp','清空历史按钮')
    stockBlock=LocatorDetail('div.result-item.cp','股票块')
    stock=LocatorDetail('div.result-name','股票(包含代码)')
    stockName=LocatorDetail('div.result-name>span:nth-child(1)','股票名称')
    stockCode=LocatorDetail('div.result-name>span:nth-child(3)','股票代码')
    highlightCode=LocatorDetail('div.result-name>span:nth-child(3)>span','高亮部分股票代码')
    labelName=LocatorDetail('div.label-text','股票标签名称')
    historyStock = LocatorDetail('div.history-item.cp', '历史股票(包含代码)')
    # historyStockName=LocatorDetail('div.history-item.cp>div.text','历史股票名字')
    # historyStockCode=LocatorDetail('div.history-item.cp>div.num','历史股票代码')
    # searchAlert=LocatorDetail('p.el-message__content','搜索提示')
    searchAlert=LocatorDetail('[.el-message.el-message--error','搜索提示')





